import datetime

# data={{},}

test_data = [
    # 正常活动-40692
    {"key": "normal",
     "title": "正常的活动",
     "data": {
         "commodityType": 1,
         "spuId": 40692,
         "activityDesc": "独秀自动化测试专用",
         "coverImg": "https://buorgcostest2.rongyi.com/member-logo/45f54c8e59e66c186657bb9d6d0f5a0d.png",
         "tagImg": "",
         "startTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "endTime": (datetime.datetime.now() + datetime.timedelta(days=10)).strftime("%Y-%m-%d 23:59:59"),
         "warmupTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "marketPrice": 100,
         "sellingPrice": 100,
         "virtualSales": 0,
         "commodityList": [
             {
                 "skuId": 157284,
                 "skuSpecName": "重量:1",
                 "saleStock": 100,
                 "activityStock": 50
             }
         ],
         "spuName": "独秀自动化测试限时专区专用-请勿操作"
     }},

    # 活动库存为0-40693
    {"key": "stock_null",
     "title": "活动库存为0",
     "data": {
         "commodityType": 1,
         "spuId": 40693,
         "activityDesc": "独秀自动化测试专用",
         "coverImg": "https://buorgcostest2.rongyi.com/member-logo/45f54c8e59e66c186657bb9d6d0f5a0d.png",
         "tagImg": "",
         "startTime": (datetime.datetime.now() + datetime.timedelta(days=1)).strftime(
             "%Y-%m-%d 00:00:00"),
         "endTime": (datetime.datetime.now() + datetime.timedelta(days=10)).strftime("%Y-%m-%d 23:59:59"),
         "warmupTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "marketPrice": 100,
         "sellingPrice": 100,
         "virtualSales": 0,
         "commodityList": [
             {
                 "skuId": 157285,
                 "skuSpecName": "重量:1",
                 "saleStock": 100,
                 "activityStock": 0
             }
         ],
         "spuName": "独秀自动化测试限时专区专用-请勿操作"
     }},

    # spu未上架-40696
    {"key": "sold_out",
     "title": "spu未上架",
     "data": {
         "commodityType": 1,
         "spuId": 40696,
         "activityDesc": "独秀自动化测试专用",
         "coverImg": "https://buorgcostest2.rongyi.com/member-logo/45f54c8e59e66c186657bb9d6d0f5a0d.png",
         "tagImg": "",
         "startTime": (datetime.datetime.now() + datetime.timedelta(days=1)).strftime("%Y-%m-%d 00:00:00"),
         "endTime": (datetime.datetime.now() + datetime.timedelta(days=10)).strftime("%Y-%m-%d 23:59:59"),
         "warmupTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "marketPrice": 100,
         "sellingPrice": 100,
         "virtualSales": 0,
         "commodityList": [
             {
                 "skuId": 157288,
                 "skuSpecName": "重量:1",
                 "saleStock": 100,
                 "activityStock": 20
             }
         ],
         "spuName": "独秀自动化测试限时专区专用-请勿操作"
     }
     },

    # 活动库存不足--40692
    {"key": "stock_deficiency",
     "title": "活动库存不足",
     "data": {
         "commodityType": 1,
         "spuId": 40692,
         "activityDesc": "独秀自动化测试专用",
         "coverImg": "https://buorgcostest2.rongyi.com/member-logo/45f54c8e59e66c186657bb9d6d0f5a0d.png",
         "tagImg": "",
         "startTime": (datetime.datetime.now() + datetime.timedelta(days=11)).strftime("%Y-%m-%d 00:00:00"),
         "endTime": (datetime.datetime.now() + datetime.timedelta(days=20)).strftime("%Y-%m-%d 23:59:59"),
         "warmupTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "marketPrice": 100,
         "sellingPrice": 100,
         "virtualSales": 0,
         "commodityList": [
             {
                 "skuId": 157284,
                 "skuSpecName": "重量:1",
                 "saleStock": 100,
                 "activityStock": 100
             }
         ],
         "spuName": "独秀自动化测试限时专区专用-请勿操作"
     }
     },

    # 未开始的活动-40694
    {"key": "not_start",
     "title": "未开始的活动",
     "data": {
         "commodityType": 1,
         "spuId": 40694,
         "activityDesc": "独秀自动化测试专用",
         "coverImg": "https://buorgcostest2.rongyi.com/member-logo/45f54c8e59e66c186657bb9d6d0f5a0d.png",
         "tagImg": "",
         "startTime": (datetime.datetime.now() + datetime.timedelta(days=2)).strftime("%Y-%m-%d 00:00:00"),
         "endTime": (datetime.datetime.now() + datetime.timedelta(days=10)).strftime("%Y-%m-%d 23:59:59"),
         "warmupTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "marketPrice": 100,
         "sellingPrice": 100,
         "virtualSales": 0,
         "commodityList": [
             {
                 "skuId": 157286,
                 "skuSpecName": "重量:1",
                 "saleStock": 100,
                 "activityStock": 20
             }
         ],
         "spuName": "独秀自动化测试限时专区专用-请勿操作"
     }
     },
    # 进行中的活动-40695
    {"key": "underway",
     "title": "进行中的活动",
     "data": {
         "commodityType": 1,
         "spuId": 40695,
         "activityDesc": "独秀自动化测试专用",
         "coverImg": "https://buorgcostest2.rongyi.com/member-logo/45f54c8e59e66c186657bb9d6d0f5a0d.png",
         "tagImg": "",
         "startTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "endTime": (datetime.datetime.now() + datetime.timedelta(days=10)).strftime("%Y-%m-%d 23:59:59"),
         "warmupTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "marketPrice": 100,
         "sellingPrice": 100,
         "virtualSales": 0,
         "commodityList": [
             {
                 "skuId": 157287,
                 "skuSpecName": "重量:1",
                 "saleStock": 100,
                 "activityStock": 20
             }
         ],
         "spuName": "独秀自动化测试限时专区专用-请勿操作"
     }
     },
    # 活动档期冲突-40692
    {"key": "time_conflict",
     "title": "正常的活动",
     "data": {
         "commodityType": 1,
         "spuId": 40692,
         "activityDesc": "独秀自动化测试专用",
         "coverImg": "https://buorgcostest2.rongyi.com/member-logo/45f54c8e59e66c186657bb9d6d0f5a0d.png",
         "tagImg": "",
         "startTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "endTime": (datetime.datetime.now() + datetime.timedelta(days=10)).strftime("%Y-%m-%d 23:59:59"),
         "warmupTime": datetime.datetime.now().strftime("%Y-%m-%d 00:00:00"),
         "marketPrice": 100,
         "sellingPrice": 100,
         "virtualSales": 0,
         "commodityList": [
             {
                 "skuId": 157284,
                 "skuSpecName": "重量:1",
                 "saleStock": 100,
                 "activityStock": 20
             }
         ],
         "spuName": "独秀自动化测试限时专区专用-请勿操作"
     }},
]
